#include <stdio.h>

int is_leap_year(int year);

int main(void)
{
	int year;
	printf("Please input the year you want to query:");
	scanf("%d", &year);
	if(is_leap_year(year))
		printf("It is leap year.\n");
	else
		printf("It is not leap year.\n");
	
	return 0;
}

int is_leap_year(int year)
{
	if(!(year%4) && year%100)
		return 1;
	else if(!(year%400))
		return 1;
	     else
	    return 0; 
}
